<!--
 * @Descripttion:
 * @Author: xiao li
 * @Date: 2020-07-06 12:17:00
 * @LastEditors: xiao li
 * @LastEditTime: 2021-04-12 16:25:17
-->
<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
  </div>
</template>

<script>
export default {
  name: 'App',
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload () {
      this.isRouterAlive = false
      this.$nextTick(() => {
        this.isRouterAlive = true
      })
    }
  }
}
</script>

<style lang='scss'>
  @import url('./style/reset.css');
  @import url('./style/icon.css');
  @import url('./style/common.css');
  @import url('./style/base.css');
</style>
